package com.github.prontera.persistence;

import org.apache.ibatis.annotations.Param;

import com.github.prontera.MyBatisRepository;
import com.github.prontera.domain.Sequence;
import com.github.prontera.persistence.CrudMapper;

/**
 * 客户账户Dao
 */
@MyBatisRepository
public interface SequenceMapper extends CrudMapper<Sequence>{

	Sequence lock(String name);
	
	int updateForValue(@Param("sequenceName") String sequenceName,@Param("beforeValue")  Long beforeValue,@Param("afterValue")  Long afterValue);
	
}
